<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //值不能修改的量称之为常量
        //注意事项：
        //1.要赋初始值
        const A;
        //2.常量一般大写
        const SCHOOL = '尚硅谷';
        //3.常量的值不能修改
        const SCHOOL = 'atguigu';
        //4.块级作用域与let一样
        {
            const PLAYER = 'uzi'
        }
        console.log(PLAYER); //访问不到

        //5.对于数组的对象的修改，不算对常量的修改，不会报错
        const TEAM = ['UZI', 'MING', 'YUNHAI', 'JING']
        TEAM.push('Meike') //添加值但是不改变地址


        console.log(SCHOOL);
    </script>
</body>

</html>